package java06;

import java.util.*;

public class Java61 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] arr = new int[5];
		String str = null;
		while(true){
			String choice = in.next();
			try{
					if(choice.equals("arr")){
						int n = in.nextInt();
						arr[n] = 1;
					}
					else if(choice.equals("null")){
						str.length();
					}
					else if(choice.equals("cast")){
						Object o = new String("str");
						Integer x = (Integer)o;
					}
					else if(choice.equals("num")){
						String num = in.next();
						Integer.parseInt(num);
					}
					else{
						break;
					}
			}catch(Exception e){
				System.out.println(e);
			}
		}
	}

}